<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片展示页面</title>
    <link rel="stylesheet" href="../../css/oksub.css">
	<script type="text/javascript" src="../../lib/loading/okLoading.js"></script>
</head>
<body>
    <!--form表单-->
	<form class="layui-form layui-form-pane ok-form">
		<div class="layui-form-item">
			<div class="layui-input-block">
                <div><img src="" alt="" id="img"></div>
                <input type="hidden" name="path" class="layui-input">
            </div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<a class="layui-btn">重新选择图片</a>
				<button class="layui-btn" lay-submit lay-filter="add">立即提交</button>
			</div>
		</div>
	</form>
    
</body>
<!--js逻辑-->
<script src="../../lib/layui/layui.js"></script>
<script type="text/javascript">
	layui.use(["form", "okLayer", "okUtils", "okMock", "laydate", 'upload'], function () {
		let $ = layui.jquery;
		let form = layui.form;
		let okMock = layui.okMock;
		let okLayer = layui.okLayer;
		let okUtils = layui.okUtils;

		//关闭loading
		okLoading.close();

		

		//获取url地址中的参数
        var id = okUtils.getUrlParams("id");
		//获取详情
		okUtils.ajax(okMock.api.exhibit_three.detail, "get", {id: id}).done(function (response) {
			if (response.code == HTTP_OK) {
				form.render();
			} else {
				layer.msg(response.message, { icon: 2, time: 2000 });
			}
		}).fail(function (error) {});
		
	})
</script>
</html>
